package com.example.my.meila.model;


import com.example.my.meila.model.impl.GlobalModelImpl;
import com.example.my.meila.model.impl.GoodModelImpl;
import com.example.my.meila.model.impl.MakeUpModelImpl;
import com.example.my.meila.model.impl.RankModelImpl;

/**
 * Created by zhangwei on 16/10/27.
 * 定义接口
 * 定义接口的实现类
 */

public class ModelFactory {
    public static IGlobalModel iGlobalModel;

    public static IGlobalModel getiGlobalModel() {
        if (iGlobalModel == null) {
            iGlobalModel = new GlobalModelImpl();
        }
        return iGlobalModel;
    }


    public static IGoodModel iGoodModel;

    public static IGoodModel getiGoodModel() {
        if (iGoodModel == null) {
            iGoodModel = new GoodModelImpl();
        }
        return iGoodModel;
    }


    public static IMakeUpModel iMakeUpModel;

    public static IMakeUpModel getiMakeUpModel() {
        if (iMakeUpModel == null) {
            iMakeUpModel = new MakeUpModelImpl();
        }
        return iMakeUpModel;
    }

    public static IRankModel iRankModel;

    public static IRankModel getiRankModel() {
        if (iRankModel == null) {
            iRankModel = new RankModelImpl();
        }

        return  iRankModel;

    }
}